<div class="modal-dialog modal-md">
    <form id="ajaxForm" method="post" class="form-horizontal" action="/{{controller.active}}" data-validate="parsley">
        <input type="hidden" value="{{id}}" name="id">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">{{controller.referer()|get_pathname|get_remark_type}}</h4>
            </div>
            <div class="modal-body">
                <div class="form-group">
                    <label class="col-sm-3 control-label">操作类型</label>
                    <div class="col-sm-9">
                        <div class="row">
                            <div class="col-md-8 ">
                                <input type="hidden" name="operation" class="input-sm form-control" required readonly
                                    value="{{controller.meta_title}}">
                                <label class="control-label">{{controller.meta_title}}</label>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">备注类型</label>
                    <div class="col-sm-9">
                        <div class="row">
                            <div class="col-md-8 ">
                                <input type="hidden" name="remark_type" class="input-sm form-control" required readonly
                                    value="{{controller.referer()|get_pathname}}">
                                <label
                                    class="control-label">{{controller.referer()|get_pathname|get_remark_type}}</label>
                            </div>
                        </div>
                    </div>
                </div>
                {% if reasons %}
                <div class="form-group">
                    <label class="col-sm-3 control-label">上架原因</label>
                    <div class="col-sm-9">
                        <div class="row">
                            <div class="col-md-8 ">
                                <select class="form-control input-sm" name="reason">
                                    <option value="" style="display: none"></option>
                                    {% for item in reasons %}
                                    <option value="{{item}}">{{item}}</option>
                                    {% endfor %}
                                </select>
                            </div>
                        </div>
                    </div>
                </div>
                {%endif%}
                <div class="form-group">
                    <label class="col-sm-3 control-label">备注</label>
                    <div class="col-sm-9">
                        <div class="row">
                            <div class="col-md-8 ">
                                <textarea class="form-control" placeholder="请填写备注信息，必填项。" name="remark_contents"
                                    style="height: 200px"></textarea>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <a href="javascript:;" class="btn btn-default" data-dismiss="modal">关闭</a>
                <a href="javascript:;" class="btn btn-primary btn-s-md ajax-post" type="submit"
                    target-form="form-horizontal">确定</a>
            </div>
        </div><!-- /.modal-content -->
    </form>
</div><!-- /.modal-dialog -->
<script>
    $('select[name="zzjg"]').change(function () {
        var index = $(this).get(0).selectedIndex;
        console.log(index - 1)
        $('select[name="push_userid"]').attr("disabled", true).hide().eq(index - 1).attr("disabled", false)
            .show();
    });
</script>